<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<jsp:useBean class="com.icss.users.vo.ReUsers" id="pojo"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>个人中心 - 西餐厅管理系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/header.htm"></jsp:include>
		<section class="blog-section spad">
	        <div class="container">
				<div class="col-md-10 offset-2">
					<form id="form" method="post" class="form-horizontal" action="${rootPath }/head/users/usersUpdateSubmit.htm" method="post">
						<input type="hidden" name="operType" value="${param.operType }">
						<h2
							class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">个人信息</h2>
						<div class="form-group">
							<label for="email" class="col-sm-3 control-label">邮箱:</label>
							<div class="col-sm-8">
								<input type="text" id="email" name="email" class="form-control"
									value="${one.email }" placeholder="邮箱">
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword" class="col-sm-3 control-label">昵称:</label>
							<div class="col-sm-8">
								<input type="text" id="nickName" placeholder="昵称" name="nick" value="${one.nick}"
									class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword" class="col-sm-3 control-label">真实姓名:</label>
							<div class="col-sm-8">
								<input type="text" id="nickName" placeholder="真实姓名" name="name" value="${one.name}"
									class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword" class="col-sm-3 control-label">手机号:</label>
							<div class="col-sm-8">
								<input type="text" id="phone" placeholder="手机号" name="phone" value="${one.phone}"
									class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword" class="col-sm-3 control-label">地址:</label>
							<div class="col-sm-8">
								<input type="text" id="address" placeholder="地址" name="address" value="${one.address}"
									class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword" class="col-sm-3 control-label">性别:</label>
							<div class="col-sm-8">
								<select name="sex">
									<c:forEach items="${pojo.enumsMap }" var="me" varStatus="stat">
										<c:if test="${fn:startsWith(me.key,'SEX_')}">
											<!-- 拆分,按照-拆分,取最后一个 -->
											<c:set value="${fn:split(me.key, '-')}" var="keys"/>
											<option value="${keys[1] }" ${one.sex == keys[1] ? 'selected' : '' }>${me.value }</option>
										</c:if>
									</c:forEach>
								</select>
							</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-md btn-primary" type="submit">提交</button>
							</div>
						</div>
						<div class="control-group">
							${response.info }									
						</div>
					</form>
				</div>
			</div>
	    </section>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>